//
//  GXiaNetHandle.h
//  AFN0818网络封装
//
//  Created by 甘霞 on 15/10/20.
//  Copyright © 2015年 甘霞. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^JSONBLOCK)(id result);
@interface GXiaNetHandle : NSObject

+ (void)getUrl:(NSString *)url
        cookie:(NSString *)cookie
       success:(void (^)(id result))success
       failure:(void (^)(NSError *error))failure;

+ (void)postUrl:(NSString *)url parameters:(id)parameter result:(JSONBLOCK)block;

@end
